﻿using SqlSugar;
namespace LowCoding.Domain
{
    /// <summary>
    /// 公共字段
    /// </summary>
    public class BasicEntity
    {
        /// <summary>
        /// 输入时间
        /// </summary>
        [SugarColumn(ColumnName = "CREATED", IsOnlyIgnoreUpdate = true)]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 输入员工
        /// </summary>
        [SugarColumn(ColumnName = "CREATOR", IsOnlyIgnoreUpdate = true)]
        public string Creator { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIED")]
        public DateTime? Lastmodified { get; set; }

        /// <summary>
        /// 最后修改员工
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIER")]
        public string Lastmodifier { get; set; }

        /// <summary>
        /// 记录更新次数
        /// </summary>
        [SugarColumn(ColumnName = "VERSION")]
        public int Version { get; set; }

        /// <summary>
        /// 是否删除，1为逻辑删除
        /// </summary>
        [SugarColumn(ColumnName = "ISDEL", IsOnlyIgnoreUpdate = true)]
        public int Isdel { get; set; }
    }
}
